package com.tdtxdcxm.ruralcommunity;

import com.tdtxdcxm.ruralcommunity.slice.StartPage;
import ohos.aafwk.ability.Ability;
import ohos.aafwk.ability.AbilitySliceAnimator;
import ohos.aafwk.content.Intent;
import ohos.agp.window.service.WindowManager;

public class MainAbility extends Ability {
    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);
        super.setMainRoute(StartPage.class.getName());
        this.getWindow().setInputPanelDisplayType(WindowManager.LayoutConfig.INPUT_ADJUST_NOTHING);

        AbilitySliceAnimator anim = new AbilitySliceAnimator();
        anim.setDuration(400);
        anim.setDelay(0);
        this.setAbilitySliceAnimator(anim);
    }
}
